package com.deewin.study.interfaces.Persion;

import com.deewin.study.interfaces.Papapa;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import javax.annotation.PostConstruct;

@Component
public class Boy implements Papapa {
    @PostConstruct
    public void postConstruct(){
        System.out.println("===Boy PostConstruct function......");
    }


    @Override
    public void dododo() {
        System.out.println("boy do is dingding!");
    //    throw new RuntimeException();
    }

    public void preDestroy(){
        System.out.println("_____Boy PreDestroy function.....");
    }
}
